From: Jasper St. Pierre Date: Mon, 1 Sep 2014 21:05:14 +0000 (-0700) Subject: shell-glsl-quad: Provide a paint volume X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2208 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e933302ae48a40dd23497b1786772f2b83a2833d;p=gnome-shell.git shell-glsl-quad: Provide a paint volume To prevent from falling back to the slow path of doing a full-stage repaint every time. --- diff --git a/src/shell-glsl-quad.c b/src/shell-glsl-quad.c index c37f73838..b24f0ce80 100644 --- a/src/shell-glsl-quad.c +++ b/src/shell-glsl-quad.c @@ -23,6 +23,13 @@ struct _ShellGLSLQuadPrivate CoglPipeline *pipeline; }; +static gboolean +shell_glsl_quad_get_paint_volume (ClutterActor *actor, + ClutterPaintVolume *volume) +{ + return clutter_paint_volume_set_from_allocation (volume, actor); +} + static void shell_glsl_quad_paint (ClutterActor *actor) { @@ -151,6 +158,7 @@ shell_glsl_quad_class_init (ShellGLSLQuadClass *klass) gobject_class->constructed = shell_glsl_quad_constructed; gobject_class->dispose = shell_glsl_quad_dispose; + actor_class->get_paint_volume = shell_glsl_quad_get_paint_volume; actor_class->paint = shell_glsl_quad_paint; g_type_class_add_private (klass, sizeof (ShellGLSLQuadPrivate));